﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using babydealModel;

public partial class admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void them_km_Click(object sender, EventArgs e)
    {
        using (babydealEntities context = new babydealEntities())
        { 
            thanh_vien obj = new thanh_vien();
            var kq = from s in context.thanh_vien 
                     where 1==1
                     select s;
            foreach (var row in kq)
            {
                SendEmail.sendMailAds(row.email, row.ten_dang_nhap, ten_sp.Text, noi_dung.Text);
            }
        }
    }
}